package com.BMS.DAO;

import com.BMS.entity.Borrow;

/**
 * 借阅记录实体类DAO层接口
 * @author lenovo
 *
 */
public interface BorrowDao {

	// add
	public void addBorrow(Borrow borrow);
	// delete
	public void deleteBorrowById(int borrow_id);
	// find
	public Borrow findBorrowById(int borrow_id);
	
	public Borrow findBorrowByBookId(String book_id);
	// update
	public void updateBorrow(Borrow borrow);
	// 获取图书借阅状态
	public boolean isBorrowable(String book_id);
	
}
